import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from "axios"
import VueAxios from 'vue-axios';
import api_b from '../api/api-backstage/api_b.js'
import api_r from '../api/api-reception/api_r.js'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(VueAxios,axios)//第二种方法
Vue.use(ElementUI,{ size: 'small', zIndex: 3000 });
Vue.prototype.$api_b=api_b
Vue.prototype.$api_r=api_r
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

// router.beforeEach((to,from,next)=>{
//   if(to.path == '/login'){
//     next();
//   }else{
//     alert('您还没有登录，请先登录');
//     next('/login');
//   }
// })